package com.twm.common;

/**
 * @ClassName StatusCode
 * @Description TODO
 * @Author twm17
 * @Date 2020/11/11 17:16
 * @Version 1.0
 */
public enum StatusCode {
    NAME_CONFLICT(1000, "重复命名"),
    NAME_INVALID(1001,"名称无效"),
    PASSWORD_ERROR(1002,"密码错误"),
    CODE_ERROR(1003,"验证码错误"),
    REDIRECT_LOGIN(1004,"重定向登录页面"),
    OK(200,"OK");
   Integer status;
   String message;

    public String getMessage() {
        return message;
    }

    public Integer getStatus() {
        return status;
    }

    StatusCode(Integer status, String message) {
        this.message=message;
        this.status=status;
    }
}
